<template>
    <div class="teleport"> Teleport </div>
    <!-- disabled 禁止teleport移动，在原位置渲染 -->
    <teleport to="body" disabled>
        <div class="modal-confirm">
            <div class="header">Top</div>
            <div class="body">Body</div>
            <div class="footer">Footer</div>
        </div>
    </teleport>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
    setup() {
        return {}
    },
})
</script>
